package com.itheima.reggie.service;

import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.damain.Category;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface CategorySerivce  {
    List<Category> findall();
//新增
    void save(Category category);
//修改分类
    void update(Category category);
//删除，根据id
    ResultInfo delete(Long id);
    //根据type查询分类
    List<Category> findByType(Integer type);
}
